/* ===== LIGHT & SHADOWS LEARNING TOOL - COMPLETE STYLES (thirteen-light&shadow.css) ===== */

/* ===== MODAL & CONTAINER ===== */
.thirteen-lightshadow-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Bright, sunny background with deep shadow contrast */
  background: linear-gradient(
    135deg,
    #ffefba 0%,
    #ffd1a5 25%,
    #a5b4ff 50%,
    #4b0082 75%,
    #f0f8ff 100%
  );
  background-size: 400% 400%;
  animation: thirteenLightShadowGradientShift 15s ease infinite;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
}

.thirteen-lightshadow-modal.active {
  display: flex;
}

@keyframes thirteenLightShadowGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.thirteen-lightshadow-container {
  background: linear-gradient(
    135deg,
    #ffffe0 0%,
    #fff5cc 50%,
    #fffdf5 100%
  ); /* Pale yellow/white center */
  border-radius: 50px;
  padding: 40px;
  max-width: 1500px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35),
    /* Strong shadow for contrast */ 0 20px 50px rgba(255, 215, 0, 0.4),
    /* Sun glow */ inset 0 2px 5px rgba(255, 255, 255, 0.9);
  animation: thirteenLightShadowSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  border: 8px solid;
  /* Sun-like border */
  border-image: linear-gradient(135deg, #ffd700, #ffa500, #ff4500, #ffd700) 1;
}

@keyframes thirteenLightShadowSlideUp {
  from {
    transform: translateY(100px) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* ===== CLOSE BUTTON (SUN/MOON THEME) ===== */
.thirteen-lightshadow-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(
    135deg,
    #4b0082 0%,
    #2f004f 100%
  ); /* Deep shadow/night color */
  color: white;
  border: none;
  border-radius: 50%;
  width: var(--fs-26-60);
  height: var(--fs-26-60);
  font-size: 2.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(75, 0, 130, 0.7);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  border: 4px solid #ffd700; /* Gold border */
  font-size: var(--12-24);
}

.thirteen-lightshadow-close-btn:hover {
  transform: scale(1.2) rotate(90deg);
  box-shadow: 0 15px 40px rgba(75, 0, 130, 0.9);
}

/* ===== HEADER (BRIGHT SUN GLOW) ===== */
.thirteen-lightshadow-header {
  text-align: center;
  margin-bottom: 35px;
  animation: thirteenLightShadowBounceIn 0.8s ease-out;
}

@keyframes thirteenLightShadowBounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thirteen-lightshadow-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  /* Vibrant sun/light colors */
  background: linear-gradient(
    135deg,
    #ffd700 0%,
    #ffa500 25%,
    #ff8c00 50%,
    #ff4500 75%,
    #ffd700 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(255, 215, 0, 0.5);
  letter-spacing: 3px;
  animation: thirteenLightShadowRainbowText 5s linear infinite;
  background-size: 200% 200%;
}

@keyframes thirteenLightShadowRainbowText {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.thirteen-lightshadow-subtitle {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: #4b0082; /* Deep Indigo */
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(75, 0, 130, 0.3);
}

/* ===== SCORE BAR (SUN & MOON) ===== */
.thirteen-lightshadow-score-bar {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.thirteen-lightshadow-score-item {
  background: white;
  border-radius: 30px;
  padding: 20px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 4px solid #ffd1a5; /* Pale orange */
  transition: all 0.3s ease;
}

.thirteen-lightshadow-score-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.thirteen-lightshadow-score-item.thirteen-lightshadow-total {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-color: #ff8c00;
  animation: thirteenLightShadowPulseGlow 2s infinite;
}

@keyframes thirteenLightShadowPulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
  }

  50% {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 1);
  }
}

.thirteen-lightshadow-score-emoji {
  font-size: clamp(2rem, 4vw, 3rem);
  animation: thirteenLightShadowBounce 2s infinite;
}

@keyframes thirteenLightShadowBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.thirteen-lightshadow-score-label {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: #666;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.thirteen-lightshadow-score-value {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #4b0082; /* Deep Indigo */
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(75, 0, 130, 0.2);
}

.thirteen-lightshadow-total .thirteen-lightshadow-score-value {
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== NAVIGATION TABS (SECTION TABS) ===== */
.thirteen-lightshadow-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.thirteen-lightshadow-tab-btn {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #555;
  border: 3px solid #d0d0d0;
  padding: 18px 30px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 35px;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.thirteen-lightshadow-tab-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(123, 104, 238, 0.3);
}

.thirteen-lightshadow-tab-btn.active {
  background: linear-gradient(
    135deg,
    #ffa500 0%,
    #ffd700 100%
  ); /* Orange to Gold */
  color: #4b0082; /* Deep Indigo text */
  border-color: #ff8c00;
  box-shadow: 0 10px 30px rgba(255, 165, 0, 0.5);
  transform: translateY(-3px) scale(1.08);
}

/* Sub-page Navigation inside 'Intro' */
.thirteen-lightshadow-sub-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.thirteen-lightshadow-sub-tab-btn {
  background: #ffefba; /* Pale yellow */
  color: #4b0082;
  border: 2px solid #ffd700;
  padding: 10px 20px;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.thirteen-lightshadow-sub-tab-btn:hover {
  transform: translateY(-2px);
  background: #ffd700;
}

.thirteen-lightshadow-sub-tab-btn.active {
  background: linear-gradient(
    45deg,
    #4b0082 0%,
    #6a5acd 100%
  ); /* Indigo/Slate blue for active */
  color: white;
  border-color: #4b0082;
  box-shadow: 0 5px 15px rgba(75, 0, 130, 0.5);
}

.thirteen-lightshadow-tab-emoji {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  animation: thirteenLightShadowRotate 3s infinite;
}

@keyframes thirteenLightShadowRotate {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.thirteen-lightshadow-tab-text {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  text-align: center;
}

/* ===== CONTENT SECTIONS ===== */
.thirteen-lightshadow-content-section {
  display: none;
  animation: thirteenLightShadowFadeSlide 0.5s ease-out;
}

.thirteen-lightshadow-content-section.active {
  display: block;
}

@keyframes thirteenLightShadowFadeSlide {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thirteen-lightshadow-learn-card {
  background: white;
  border-radius: 40px;
  padding: var(--12-24);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border: 5px solid #ffd700; /* Gold border */
}

/* ===== ANIMATED HEADER ===== */
.thirteen-lightshadow-animated-header {
  text-align: center;
  margin-bottom: 35px;
  position: relative;
}

.thirteen-lightshadow-section-title {
  font-size: var(--fs-16-32);
  background: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(255, 69, 0, 0.2);
  animation: thirteenLightShadowWiggle 2s infinite;
}

@keyframes thirteenLightShadowWiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-2deg);
  }

  75% {
    transform: rotate(2deg);
  }
}

.thirteen-lightshadow-section-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #4b0082;
  font-weight: 700;
}

.thirteen-lightshadow-sparkles {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 10px;
  animation: thirteenLightShadowSparkle 1.5s infinite;
}

@keyframes thirteenLightShadowSparkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* ===== THEORY & SUB-PAGES SECTION ===== */
.thirteen-lightshadow-intro-content {
  max-width: 1100px;
  margin: 0 auto;
}

.thirteen-lightshadow-main-image {
  text-align: center;
  margin-bottom: 40px;
}

.thirteen-lightshadow-diagram-image {
  max-width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border: 6px solid #4b0082; /* Deep border for diagram */
}

.thirteen-lightshadow-introduction {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border-radius: 25px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffd700;
}

.thirteen-lightshadow-intro-text {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #555;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.thirteen-lightshadow-sub-page-content {
  background: #fdfdff;
  border-radius: 30px;
  padding: var(--fs-12-24);
  box-shadow: inset 0 0 15px rgba(75, 0, 130, 0.1);
  border: 3px dashed #ffd700;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thirteen-lightshadow-sub-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #4b0082;
  margin-bottom: 20px;
  font-weight: 900;
}

.thirteen-lightshadow-sub-page-description {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  color: #2d3436;
  line-height: 1.6;
  margin: 0;
}

/* Detail items for the 'Light Sources' and 'Fascinating Facts' lists */
.thirteen-lightshadow-details-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
}

.thirteen-lightshadow-detail-item {
  background: linear-gradient(
    135deg,
    #ffefba 0%,
    #ffd1a5 100%
  ); /* Light theme */
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left: 6px solid #ff8c00;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: var(--fs-12-24);
}

.thirteen-lightshadow-detail-item.shadow-item {
  background: linear-gradient(
    135deg,
    #d3d3d3 0%,
    #b0c4de 100%
  ); /* Shadow/Cool theme */
  border-left: 6px solid #4b0082;
}

.thirteen-lightshadow-detail-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.thirteen-lightshadow-part-emoji {
  font-size: clamp(2rem, 4vw, 3rem);
}

.thirteen-lightshadow-part-content {
  text-align: left;
}

.thirteen-lightshadow-part-name {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #ff4500;
  margin-bottom: 5px;
  font-weight: 900;
}

.thirteen-lightshadow-detail-item.shadow-item .thirteen-lightshadow-part-name {
  color: #4b0082;
}

.thirteen-lightshadow-part-description {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: #2d3436;
  line-height: 1.6;
  margin: 0;
}

/* ===== QUIZ SECTION (NIGHT/DARK THEME FOR CONTRAST) ===== */
.thirteen-lightshadow-quiz-progress {
  margin-bottom: 30px;
}

.thirteen-lightshadow-progress-bar {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  height: 25px;
  overflow: hidden;
}

.thirteen-lightshadow-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ff8c00 100%
  ); /* Gold progress bar */
  border-radius: 20px;
  transition: width 0.5s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.thirteen-lightshadow-quiz-area {
  background: linear-gradient(
    135deg,
    #f0f8ff 0%,
    #e6e6fa 100%
  ); /* Light background for quiz card */
  border-radius: 25px;
  padding: 30px;
  text-align: center;
}

.thirteen-lightshadow-quiz-question {
  text-align: center;
  margin-bottom: 40px;
}

.thirteen-lightshadow-question-text {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #4b0082; /* Deep question text */
  font-weight: bold;
  animation: thirteenLightShadowQuestionPulse 2s infinite;
}

@keyframes thirteenLightShadowQuestionPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.thirteen-lightshadow-quiz-options {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.thirteen-lightshadow-quiz-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Overlaps the question : hover effect removed 
.thirteen-lightshadow-quiz-option:hover {
    transform: translateY(-10px) scale(1.1);
}
*/

.thirteen-lightshadow-option-content {
  background: white;
  border-radius: 10px;
  padding: 20px 30px;
  min-width: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid #df6807; /* Pale orange border */
  transition: all 0.3s ease;
}

.thirteen-lightshadow-quiz-option:hover .thirteen-lightshadow-option-content {
  border-color: #ffa500;
  box-shadow: 0 15px 40px rgba(255, 165, 0, 0.3);
}

.thirteen-lightshadow-option-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #2d3436;
}

.thirteen-lightshadow-quiz-option.thirteen-lightshadow-correct-answer
  .thirteen-lightshadow-option-content {
  border-color: #3cb371; /* Medium Sea Green */
  background: linear-gradient(135deg, #e0ffe0 0%, #c1ffc1 100%);
  animation: thirteenLightShadowCorrectPulse 0.6s;
}

@keyframes thirteenLightShadowCorrectPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.thirteen-lightshadow-quiz-option.thirteen-lightshadow-wrong-answer
  .thirteen-lightshadow-option-content {
  animation: thirteenLightShadowWrongShake 0.5s;
  border-color: #ff6347; /* Tomato */
}

@keyframes thirteenLightShadowWrongShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-15px);
  }

  75% {
    transform: translateX(15px);
  }
}

.thirteen-lightshadow-quiz-feedback {
  text-align: center;
  min-height: 80px;
}

.thirteen-lightshadow-feedback-correct,
.thirteen-lightshadow-feedback-wrong {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 25px;
  animation: thirteenLightShadowFeedbackPop 0.5s;
}

@keyframes thirteenLightShadowFeedbackPop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

.thirteen-lightshadow-feedback-correct {
  background: linear-gradient(135deg, #e0ffe0 0%, #c1ffc1 100%);
  border: 4px solid #3cb371;
}

.thirteen-lightshadow-feedback-wrong {
  background: linear-gradient(135deg, #fff9e6 0%, #ffefba 100%);
  border: 4px solid #ff8c00;
}

.thirteen-lightshadow-feedback-emoji {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  display: block;
  margin-bottom: 10px;
}

.thirteen-lightshadow-feedback-text {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #3cb371;
}

.thirteen-lightshadow-feedback-wrong .thirteen-lightshadow-feedback-text {
  color: #ff8c00;
}

/* ===== COMPLETE BUTTON / GAME BUTTON ===== */
.thirteen-lightshadow-complete-btn {
  /* Deep Indigo to reflect shadow/night */
  background: linear-gradient(135deg, #4b0082 0%, #6a5acd 50%, #483d8b 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  font-family: inherit;
  margin-top: 15px;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
}

.thirteen-lightshadow-complete-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.thirteen-lightshadow-btn-large {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.thirteen-lightshadow-btn-emoji {
  font-size: clamp(2rem, 4vw, 3rem);
  animation: thirteenLightShadowRotate 3s infinite;
}

/* ===== CONFETTI ===== */
.thirteen-lightshadow-confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10002;
  display: none;
}

.thirteen-lightshadow-confetti-container.active {
  display: block;
}

.thirteen-lightshadow-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  animation: thirteenLightShadowConfettiFall 3s linear forwards;
  border-radius: 50%;
}

@keyframes thirteenLightShadowConfettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===== CUSTOM SCROLLBAR ===== */
.thirteen-lightshadow-container::-webkit-scrollbar {
  width: 14px;
}

.thirteen-lightshadow-container::-webkit-scrollbar-track {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3),
    rgba(75, 0, 130, 0.3)
  );
  border-radius: 10px;
}

.thirteen-lightshadow-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border-radius: 10px;
  border: 2px solid white;
}

.thirteen-lightshadow-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffa500 0%, #ffd700 100%);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .thirteen-lightshadow-container {
    padding: 30px;
  }

  .thirteen-lightshadow-quiz-options {
    gap: 30px;
  }

  .thirteen-lightshadow-game-main-box {
    padding: 15px;
    gap: 20px;
  }

  .thirteen-lightshadow-puppet-image {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .thirteen-lightshadow-container {
    padding: 25px;
    border-radius: 35px;
  }

  .thirteen-lightshadow-nav-tabs,
  .thirteen-lightshadow-sub-nav-tabs {
    flex-direction: column;
    align-items: stretch;
  }

  .thirteen-lightshadow-tab-btn,
  .thirteen-lightshadow-sub-tab-btn {
    width: 100%;
    min-width: auto;
  }

  .thirteen-lightshadow-quiz-options {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
